package com.campus.service.impl;

import com.campus.dao.ClassDao;
import com.campus.model.MyClass;
import com.campus.service.ClassService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

/**
 * @author HLQ
 * @date 2024/11/19 9:55
 */
@Slf4j
@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    ClassDao classDao;
    @Autowired
    JdbcTemplate jdbcTemplate;
    @Override
    public int addClass(MyClass myClass){
        return classDao.addClass(myClass);
    }
    @Override
    public int updateClassById(MyClass myClass){
        return classDao.updateClassById(myClass);
    }
    @Override
    public int addClassStudent(int classId,int studentId,int groupId){
        return classDao.addClassStudent(classId,studentId,groupId);
    }
    @Override
    public int addClassTeacher(int classId, int teacherId){
        return classDao.addClassTeacher(classId,teacherId);
    }


}
